'use strict';
/**
 * model
 */
export default class extends think.model.base {

    //判断登录 帐号密码
    login(username,password){
        let obj = this.model('admin').where({username:username,password:think.md5(password)}).find();
        return obj;
    }
}